public class Test002 {
    public static void main(String[] args) {
        double height = 100.0;
        double total = 0.0;
        for (int i = 0; i < 10; i++) {
            double temp = height;
            height = height / 2;
            if (i == 0) {
                total = total + temp+height+height;
            } else {
                total = total + height + height;
            }
        }
        System.out.println("第十次落地时共经过" + total + "米");
        System.out.println("第十次反弹" + height + "米");
    }
}
